package com.swak.metrics.metas;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 关注的数据本身<br>
 * 
 * 直方图（数据值的分布）: 最大值,最小值,平均值,中值 <br>
 * histogram.update(i);<br>
 * 
 * 数据数量:<br>
 * "count":"10",<br>
 * 
 * 数据的值分布:<br>
 * "p50":5.0,<br>
 * "p75":7.0,<br>
 * "p95":9.0,<br>
 * "p98":9.0,<br>
 * "p99":9.0,<br>
 * "p999":9.0,<br>
 * 
 * 数据最大值最小值分布:<br>
 * "min":"0",<br>
 * "mean":4.644117668532804,<br>
 * "max":"9",<br>
 * "stddev":2.8640747226186396<br>
 */
@Getter
@Setter
@Accessors(chain = true)
@ToString(callSuper = true)
public class HistogramMeta extends ServerMeta {

	private String type;
	private String name;
	private Long count;
	private Double min;
	private Double max;
	private Double mean;
	private Double stddev;
	private Double p50;
	private Double p75;
	private Double p95;
	private Double p98;
	private Double p99;
	private Double p999;
}
